RoundedCornerCompat

Represents a rounded corner of the display.

Note: The center coordinates and radius are an approximation of the actual display corner (based on the display's rounded corner shape).

RoundedCornerCompat is immutable.

Constructors

Link copied to clipboard
constructor(position: Int, radius: Int, centerX: Int, centerY: Int)

Types

Link copied to clipboard

Properties

Link copied to clipboard
The rounded corner is at the bottom-left of the screen.
Link copied to clipboard
The rounded corner is at the bottom-right of the screen.
Link copied to clipboard
The rounded corner is at the top-left of the screen.
Link copied to clipboard
The rounded corner is at the top-right of the screen.

Functions

Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
@NonNull
open fun getCenter(): @NonNull Point
Returns the circle center of a quarter circle approximation of this RoundedCornerCompat.
Link copied to clipboard
open fun getCenterX(): Int
Returns the x-coordinate of the circle center of a quarter circle approximation of this RoundedCornerCompat.
Link copied to clipboard
open fun getCenterY(): Int
Returns the y-coordinate of the circle center of a quarter circle approximation of this RoundedCornerCompat.
Link copied to clipboard
open fun getPosition(): Int
Get the position of this RoundedCornerCompat.
Link copied to clipboard
open fun getRadius(): Int
Returns the radius of a quarter circle approximation of this RoundedCornerCompat.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
@NonNull
open fun toString(): @NonNull String